.d-flex.justify-content-between.flex-wrap.flex-md-nowrap.align-items-center.pt-3.pb-2.mb-3.border-bottom
  %h1.h2 Current Templates

- if @templates
  .table.table-striped
    %table{ :style => "width: 80%" }
      %thead
        %tr
          %td{ :style => "width: 30%" }
            %b Report Type
          %td{ :style => "width: 30%" }
            %b Description
          %td{ :style => "width: 25%" }
            %b Template Type
          %td.text-right{ :style => "width: 15%" }
            %b Actions
      %tbody
        - @templates.each do |template|
          %tr
            %td
              #{template.report_type}
            %td
              #{template.description}
            %td
              - if template.finding_template
                Finding Template
              - elsif template.status_template
                Status Template
              - else
                Report Template
            %td.text-right
              %a.btn.btn-sm.btn-warning{ :href => "/admin/templates/#{template.id}/edit" }
                %i.fas.fa-pencil-alt{ :title => "Edit" }
              %a.btn.btn-sm.btn-info{ :href => "/admin/templates/#{template.id}/download" }
                %i.far.fa-play-circle{ :title => "Preview" }
              %a.btn.btn-sm.btn-danger{ :href => "/admin/delete/templates/#{template.id}" }
                %i.far.fa-trash-alt{ :title => "Delete Template" }
              %a.btn.btn-sm.btn-success{:href => "/admin/templates/#{template.id}/tree"}
                %i.fas.fa-indent{:title => 'Tree'}
- else
  No Templates. Silly goose, how will you create reports?
